package org.example.session;

/**
 * @Author: luyg
 * @Date: 2024/11/10/3:35
 * @Description:
 */
public interface SqlSession {
    <T> T selectOne(String statement);

    <T> T selectOne(String statement, Object parameter);

    <T> T getMapper(Class<T> type);
    /**
     * Retrieves current configuration
     * 得到配置
     *
     * @return Configuration
     */
    Configuration getConfiguration();
}
